﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="RetrieveHousekeepingMenu.aspx.cs" Inherits="HotelManagement.RetrieveHousekeepingMenu" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
    .style28
    {
        width: 100%;
    }
        </style>
     <title>Simple Accordion</title>  
    <style type="text/css">  
        .accordion {  
            text-align: center;
        }  
          
        .accordionHeader {  
            border: 1px solid #2F4F4F;  
            color: white;  
            background-color: #2E4d7B;  
            font-family: Arial, Sans-Serif;  
            font-size: 12px;  
            font-weight: bold;  
            padding: 5px;  
            margin-top: 5px;  
            cursor: pointer;  
        }  
          
        .accordionHeaderSelected {  
            border: 1px solid #2F4F4F;  
            color: white;  
            background-color: #5078B3;  
            font-family: Arial, Sans-Serif;  
            font-size: 12px;  
            font-weight: bold;  
            padding: 5px;  
            margin-top: 5px;  
            cursor: pointer;  
        }  
          
        .accordionContent {  
            background-color: #D3DEEF;  
            border: 1px dashed #2F4F4F;  
            border-top: none;  
            padding: 5px;  
            padding-top: 10px;  
        }  
        </style>  
  
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h2>
    <br />
        &nbsp;&nbsp;
        Retrieve Housekeeping Menu&nbsp;&nbsp;<asp:Label ID="lblStatus" 
                runat="server" ForeColor="Red"></asp:Label>
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                ConnectionString="<%$ ConnectionStrings:DelonixRegiaDBConnectionString %>" 
                SelectCommand="SELECT [ScheduleDate] FROM [HousekeepingSchedule]">
            </asp:SqlDataSource>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        </h2>
    
     &nbsp;&nbsp; &nbsp;&nbsp;<table class="style28">
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
              <ajaxToolkit:Accordion ID="Accordion1" runat="server" 
            ContentCssClass="accordionContent" CssClass="accordion" 
            HeaderCssClass="accordionHeader" 
            HeaderSelectedCssClass="accordionHeaderSelected" Width="710px" 
            Height="567px">
 
        <Panes>
         <ajaxToolkit:AccordionPane ID="AccordionPane4" runat="server">
        <Header>Retrieve Schedule By ID</Header>  
        <Content>  
         <br /> 
                          <asp:ListBox ID="lbScheduleID" runat="server"></asp:ListBox>
                <ajaxToolkit:ListSearchExtender ID="lbScheduleID_ListSearchExtender" 
                    runat="server" TargetControlID="lbScheduleID">
                </ajaxToolkit:ListSearchExtender>
                      &nbsp;&nbsp;
                
                <br />
               <asp:Button ID="btnScheduleID" runat="server" Text="Retrieve By Schedule ID" 
                    BackColor="#F2E291" Height="35px" Width="200px" 
                    onclick="btnScheduleID_Click" />
                
                    
                     <br />
                   
        </Content>
        </ajaxToolkit:AccordionPane>
        <ajaxToolkit:AccordionPane ID="AccordionPane1" runat="server" Width="600px">
         <Header>Retrieve Schedule By Date</Header>  
        <Content>  
       
                               <asp:TextBox ID="tbxDay" runat="server" MaxLength="2" Width="60px"></asp:TextBox>
                        <ajaxToolkit:FilteredTextBoxExtender ID="tbxDay_FilteredTextBoxExtender" 
                            runat="server" FilterType="Numbers" TargetControlID="tbxDay">
                        </ajaxToolkit:FilteredTextBoxExtender>
                        &nbsp;<asp:DropDownList ID="ddlMonth" runat="server">
                            <asp:ListItem Value="1">January</asp:ListItem>
                            <asp:ListItem Value="2">February</asp:ListItem>
                            <asp:ListItem Value="3">March</asp:ListItem>
                            <asp:ListItem Value="4">April</asp:ListItem>
                            <asp:ListItem Value="5">May</asp:ListItem>
                            <asp:ListItem Value="6">June</asp:ListItem>
                            <asp:ListItem Value="7">July</asp:ListItem>
                            <asp:ListItem Value="8">August</asp:ListItem>
                            <asp:ListItem Value="9">September</asp:ListItem>
                            <asp:ListItem Value="10">October</asp:ListItem>
                            <asp:ListItem Value="11">November</asp:ListItem>
                            <asp:ListItem Value="12">December</asp:ListItem>
                        </asp:DropDownList>
                        &nbsp;<asp:TextBox ID="tbxYear" runat="server" MaxLength="4" Width="92px"></asp:TextBox>
                        <ajaxToolkit:FilteredTextBoxExtender ID="tbxYear_FilteredTextBoxExtender" 
                            runat="server" Enabled="True" FilterType="Numbers" TargetControlID="tbxYear">
                        </ajaxToolkit:FilteredTextBoxExtender>
                        <br />
                        <asp:RangeValidator ID="RangeValidator3" runat="server" 
                    ControlToValidate="tbxDay" ErrorMessage="Please Enter Valid Day" 
                    ForeColor="Red" MaximumValue="31" MinimumValue="1" Type="Integer"></asp:RangeValidator>
                        <asp:RangeValidator ID="RangeValidator2" runat="server" 
                            ControlToValidate="tbxYear" ErrorMessage="Please Enter Valid Year" 
                            ForeColor="Red" MaximumValue="2025" MinimumValue="2013" 
                    Type="Integer"></asp:RangeValidator>
                    <p></p>
                    <asp:Button ID="btnDaily" runat="server" onclick="btnDaily_Click" 
                    Text="Retrieve Schedule By Date" Height="35px" Width="220px" 
                    BackColor="#F2E291" />
        </Content>
        </ajaxToolkit:AccordionPane>

        <ajaxToolkit:AccordionPane ID="AccordionPane2" runat="server">
        <Header>Retrieve Schedule By Month</Header>  
        <Content>  
            <asp:DropDownList ID="ddlMonthly" runat="server">
                            <asp:ListItem Value="January"></asp:ListItem>
                            <asp:ListItem Value="February"></asp:ListItem>
                            <asp:ListItem Value="March"></asp:ListItem>
                            <asp:ListItem Value="April"></asp:ListItem>
                            <asp:ListItem Value="May"></asp:ListItem>
                            <asp:ListItem Value="June"></asp:ListItem>
                            <asp:ListItem Value="July"></asp:ListItem>
                            <asp:ListItem Value="August"></asp:ListItem>
                            <asp:ListItem Value="September"></asp:ListItem>
                            <asp:ListItem Value="October"></asp:ListItem>
                            <asp:ListItem Value="November"></asp:ListItem>
                            <asp:ListItem Value="December"></asp:ListItem>
                        </asp:DropDownList>
                      &nbsp;&nbsp;
                <asp:TextBox ID="tbxYearly0" runat="server" MaxLength="4"></asp:TextBox>
                <br />
               
                <asp:RangeValidator ID="RangeValidator4" runat="server" 
                    ControlToValidate="tbxYearly0" ErrorMessage="Please Enter Valid Year" 
                    ForeColor="Red" MaximumValue="2023" MinimumValue="2013"></asp:RangeValidator>
                    
                     <br /><br />
                      <asp:Button ID="btnRetrieveByMonth" runat="server" CausesValidation="False" 
                    onclick="btnRetrieveByMonth_Click" Text="Retrieve Schedule By Month" 
                    Height="35px" Width="220px" BackColor="#F2E291" />

        </Content>
        </ajaxToolkit:AccordionPane>
       
        <ajaxToolkit:AccordionPane ID="AccordionPane3" runat="server">
         <Header>Retrieve Schedule By Year</Header>  
        <Content>  
         <asp:TextBox ID="tbxYearly" runat="server" MaxLength="4"></asp:TextBox>
                <br />
              
                <asp:RangeValidator ID="RangeValidator1" runat="server" 
                    ControlToValidate="tbxYearly" ErrorMessage="Please Enter Valid Year" 
                    ForeColor="Red" MaximumValue="2023" MinimumValue="2013"></asp:RangeValidator>
                    <p></p>
                    <asp:Button ID="btnYearly" runat="server" onclick="btnYearly_Click" 
                    Text="Retrieve Schedule By Year" Height="35px" Width="220px" 
                    BackColor="#F2E291" />
        </Content>
        </ajaxToolkit:AccordionPane>
        </Panes>
               </ajaxToolkit:Accordion></td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
               <asp:GridView ID="GridView1" runat="server" CellPadding="4" 
                    EnableSortingAndPagingCallbacks="True" ForeColor="#333333" GridLines="None" 
                    Height="69px" style="margin-left: 5px; text-align: left;" Width="775px">
                    <RowStyle BackColor="#F7F6F3" BorderColor="CornflowerBlue" ForeColor="#333333" 
                        Height="30px" />
                    <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                    <Columns>
                        <asp:HyperLinkField DataNavigateUrlFields="ScheduleID" 
                            DataNavigateUrlFormatString="RetrieveHousekeepingSchedule.aspx?ScheduleID={0}" 
                            HeaderText="Action" Text="View Details" />
                    </Columns>
                    <EditRowStyle BackColor="#999999" />
                    <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" 
                        Height="25px" />
                    <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                    <SortedAscendingCellStyle BackColor="#E9E7E2" />
                    <SortedAscendingHeaderStyle BackColor="#506C8C" />
                    <SortedDescendingCellStyle BackColor="#FFFDF8" />
                    <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
                    <EmptyDataTemplate>No Records Available</EmptyDataTemplate>
                </asp:GridView></td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td colspan="2">
                <asp:Button ID="btnGoBack" runat="server" Height="35px" 
                    Text="Go Back To Staff Menu" Width="200px" BackColor="#F2E291" 
                    onclick="btnGoBack_Click1" CausesValidation="False" />
                &nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button ID="tbxPrint" runat="server" Height="35px" 
                    onclientclick="javascript:window.print()" Text="Print" Width="200px" 
                    BackColor="#F2E291" CausesValidation="False" />
            &nbsp;&nbsp; </td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td colspan="2">

&nbsp;&nbsp;&nbsp;
                
            </td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
&nbsp;<br />
    
    <div>

        </div>
</asp:Content>
